|
In the C Standard Library, signal processing defines how a program handles various signals while it executes. A signal can report some exceptional behavior within the program (''such as division by zero''), or a signal can report some asynchronous event outside the program (''such as someone striking an interactive attention key on a keyboard''). ==Standard signals== The C standard defines only 6 signals. They are all defined in signal.h header (csignal header in C++):* SIGABRT - abnormal termination.* SIGFPE - floating point exception.* SIGILL - invalid instruction.* SIGINT - interactive attention request sent to the program.* SIGSEGV - invalid memory access.* SIGTERM - termination request sent to the program.Additional signals may be specified in the signal.h header by the implementation. For example, Unix and Unix-like operating systems (such as Linux) define more than 15 additional signals.〔(【引用サイトリンク】 title=The Open Group Base Specifications Issue 6 - signal.h - signals )〕抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「C signal handling」の詳細全文を読む スポンサード リンク
|